package com.spc.web;

import com.spc.pojo.ProductOrder;
import com.spc.service.IProductOrderService;
import com.spc.service.ProductOrderServiceImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author smark
 */
@RestController
public class ProductOrderController {

    @Autowired
    private IProductOrderService productOrderService;

    @GetMapping("/api/order/save")
    public ProductOrder save(Integer userId,Integer productId){
        return productOrderService.saveOrder(userId,productId);
    }

}
